package com.sinodata.components
{

	import com.sinodata.common.Surface;
	
	import spark.components.Label;

	/**
	 * 生成一个只有label的容器
	 * @author zhangxuzz
	 * 
	 */	
	public class LabelCom extends Surface
	{	
		/**
		 * 构造方法
		 * @param text label的内容
		 * @param x label x坐标
		 * @param y label y坐标
		 * 
		 */		
		public function LabelCom(text:String,x:int,y:int)
		{
			super();
			var label:Label = new Label();
			label.text = text;
			label.x = x;
			label.y = y;
			label.setStyle("color","#FAF8F8");
			label.setStyle("fontFamily","微软雅黑");
			label.setStyle("fontSize","30");
			this.addChild(label);
		}
	}
}